using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using JNPF.Utils;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 新建企业贷款输入
    /// </summary>
    public class CustomerloanCrInput
    {
        public int id { get; set; }

        /// <summary>
        /// 业务主键
        /// </summary>
        [MaxLength(255)]
        public string UUID { get; set; }
        /// <summary>
        /// 贷款表ID
        /// </summary>
        public int? customerId { get; set; }

        /// <summary>
        /// 需求表ID
        /// </summary>
        public int? customerNeedId { get; set; }

        /// <summary>
        /// 需求表ID
        /// </summary>
        public int? customerNeedRecordId { get; set; }

        /// <summary>
        /// 管家用户ID
        /// </summary>
        public string userId { get; set; }

        /// <summary>
        /// 管家用户名称
        /// </summary>
        public string userName { get; set; }

        /// <summary>
        /// 银行经理ID
        /// </summary>
        public string bankUserId { get; set; }

        /// <summary>
        /// 银行经理名称
        /// </summary>
        public string bankUserName { get; set; }



        /// <summary>
        /// 银行名称
        /// </summary>
        public string bankName { get; set; }


        /// <summary>
        /// 贷款次数
        /// </summary>
        public int? number { get; set; }

        /// <summary>
        /// 首次提成
        /// </summary>
        public decimal? first { get; set; }

        /// <summary>
        /// 第二次提成
        /// </summary>
        public decimal? second { get; set; }

        /// <summary>
        /// 第三次及以后
        /// </summary>
        public decimal? onceMore { get; set; }

        /// <summary>
        /// 上级抽佣比例
        /// </summary>
        public decimal? drawProportion { get; set; }

        /// <summary>
        /// 贷款金额
        /// </summary>
        public decimal? amount { get; set; }

        /// <summary>
        /// 贷款期限
        /// </summary>
        public string term { get; set; }

        /// <summary>
        /// 贷款利率
        /// </summary>
        public decimal? rate { get; set; }

        /// <summary>
        /// 担保方式
        /// </summary>
        public string method { get; set; }



        /// <summary>
        /// 产品详情
        /// </summary>
        public string detail { get; set; }

    }


    /// <summary>
	/// 新建企业贷款输入
	/// </summary>
	public class CustomerloanCrInputNews
    {

        /// <summary>
        /// 贷款金额
        /// </summary>
        public decimal? amount { get; set; }

        /// <summary>
        /// 贷款期限
        /// </summary>
        public string term { get; set; }

        /// <summary>
        /// 贷款利率
        /// </summary>
        public decimal? rate { get; set; }

        /// <summary>
        /// 担保方式
        /// </summary>
        public string method { get; set; }



        /// <summary>
        /// 产品详情
        /// </summary>
        public string detail { get; set; }

        /// <summary>
        /// 结清时间
        /// </summary>
        public DateTime? endDate { get; set; }


        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? lendingDate { get; set; }


        /// <summary>
        /// 附件信息
        /// </summary>
        public string attachment { get; set; }



    }


    /// <summary>
    /// 结清 实体
    /// </summary>
    public class EndLendingInput
    {

        /// <summary>
        /// 结清金额
        /// </summary>
        public decimal? endLendingAmount { get; set; }

        

        /// <summary>
        /// 结清时间
        /// </summary>
        public DateTime? endLendingdate { get; set; }


        /// <summary>
        /// 结清原因
        /// </summary>
        public string endLendingDesc { get; set; }


    
        /// <summary>
        /// 附件信息
        /// </summary>
        public string endAttachment { get; set; }
    }
}
